//
//  ListTableViewCell.m
//  yinsiwenzhen
//
//  Created by appying_wxj on 14/12/24.
//  Copyright (c) 2014年 4gread. All rights reserved.
//

#import "ListTableViewCell.h"

@implementation ListTableViewCell

- (void)awakeFromNib {
    // Initialization code
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
//        // 病图
//        self.diseaseImage = [[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 80, 80)];
//        self.diseaseImage.backgroundColor = [UIColor colorWithRed:0.96 green:0.4 blue:0.46 alpha:1];
//        [self addSubview:self.diseaseImage];
//        
        self.lineImage = [[UIImageView alloc] init];
//        self.lineImage.backgroundColor = [UIColor colorWithRed:0.71 green:0.71 blue:0.71 alpha:1];
        self.lineImage.image = [UIImage imageNamed:@"image_line"];
        [self addSubview:self.lineImage];

        
        // 病情的询问时间
        self.timeLab = [[UILabel alloc] initWithFrame:CGRectMake(25, 28, 200, 16)];
        self.timeLab.textAlignment = NSTextAlignmentLeft;
        
        [self addSubview:self.timeLab];
        
        // 处理病情的记录
        self.recordButton = [UIButton buttonWithType:UIButtonTypeCustom];
        self.recordButton.frame = CGRectMake(200, 23, 70, 26);
        
//        [self.recordButton setTitle:@"已处理" forState:UIControlStateNormal];
//        self.recordButton.titleLabel.font = [UIFont systemFontOfSize: 14.0];
        
//        [self.recordButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        [self addSubview:self.recordButton];
        
//        // 病情的描述
//        self.diseaseDescribeLab = [[UILabel alloc] initWithFrame:CGRectMake(100, 40, 200, 50)];
////        self.diseaseDescribeLab.text = @"张三，今年33岁，因用冰块在身上冰了几十秒钟，几分钟后突然感到头晕乏力、想呕吐无食欲，疲劳想睡觉，这样已持续十多天了，请问医生这是什么病，如何治疗？";
//        self.diseaseDescribeLab.font = [UIFont systemFontOfSize:12];
//        self.diseaseDescribeLab.textAlignment = NSTextAlignmentLeft;
//        self.diseaseDescribeLab.numberOfLines = 0;
//        [self addSubview:self.diseaseDescribeLab];
        
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
